import request from '@/utils/request'
//品牌管理接口
// /admin/product/baseTrademark/{page}/{limit}
export const reqTradeMarkList=(page,limit) => request({url:`/admin/product/baseTrademark/${page}/${limit}`,method:'get'})

//用户添加信息接口 /admin/product/baseTrademark/save post 不需要id
//用户修改信息接口 /admin/product/baseTrademark/update put 需要id
//由于这两个接口需要的参数大概相同，所以我们可以将其合并为一个参数
export const reqAdd = (tradeMark)=>{
        return request({url:'/admin/product/baseTrademark/save',method:'post',data:tradeMark})
    
}
export const reqUpdate = (tradeMark)=>request({url:'/admin/product/baseTrademark/update',method:'put',data:tradeMark})
//删除商品接口
///admin/product/baseTrademark/remove/{id} delete
export const reqDelete = (id) =>request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'})